package top.glike.funct.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;
import top.glike.common.annotation.Excel;
import top.glike.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 文章管理对象 gb_articles
 *
 * @author Sophia
 * @date 2024-02-13
 */
@Data
public class GbArticles extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;

    /**
     * 分类ID
     */
    @Excel(name = "分类ID")
    private String sortId;

    /**
     * 文章标题
     */
    @Excel(name = "文章标题")
    private String articleTitle;

    /**
     * 文章内容
     */
    @Excel(name = "文章内容")
    private String articleContent;

    /**
     * 文章封面
     */
    @Excel(name = "文章封面")
    private String articleCover;

    /**
     * 是否发布
     */
    @Excel(name = "是否发布")
    private Integer isPublish;

    /**
     * 文章浏览量
     */
    @Excel(name = "文章浏览量")
    private Long viewsCount;

    /**
     * 文章评论数
     */
    @Excel(name = "文章评论数")
    private Long commentsCount;

    /**
     * 文章摘要
     */
    @Excel(name = "文章摘要")
    private String articleSummary;

    /**
     * 是否顶置
     */
    @Excel(name = "是否顶置")
    private Integer isTop;

    /**
     * 是否火热
     */
    @Excel(name = "是否火热")
    private Integer isHot;

    /**
     * 是否推荐
     */
    @Excel(name = "是否推荐")
    private Integer isRecommend;

    /**
     * 转载地址
     */
    @Excel(name = "转载地址")
    private String reprint;

    /**
     * 编辑器类型
     */
    @Excel(name = "编辑器类型")
    private String editType;

    @Transient
    private List<GbTags> tags;
}
